Removed redundant begin/commit calls
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 17 Sep 2014 00:18:21 +0000 (17:18 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 17 Sep 2014 00:18:21 +0000 (17:18 -0700)
Change-Id: I33b496c5c57451eec24080a5b769020979fb51f0

includes/EditPage.php

index 3370622..a9925ff 100644 (file)
@@ -1944,9 +1944,7 @@ class EditPage {
                        // Do this in its own transaction to reduce contention...
                        $dbw = wfGetDB( DB_MASTER );
                        $dbw->onTransactionIdle( function () use ( $dbw, $title, $watch, $wgUser, $fname ) {
-                               $dbw->begin( $fname );
                                WatchAction::doWatchOrUnwatch( $watch, $title, $wgUser );
-                               $dbw->commit( $fname );
                        } );
                }
        }